package com.ruoyi.erp.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 项目工时对象 project_hour
 * 
 * @author sauger
 * @date 2022-04-06
 */

@Data
public class ProjectHour extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /**  */
    private Integer id;

    /** 项目名称 */
    @Excel(name = "项目名称")
    private  String projectName;

    private Integer projectId;

    /** 工时模块 */
    @Excel(name = "工时模块")
    private String moduleName;

    private Integer moduleId;

    /** 姓名 */
    @Excel(name = "姓名")
    private String userName;
    private Integer userId;

    /** 工时 */
    @Excel(name = "工时")
    private BigDecimal workHour;

    /** 有效工时 */
    private BigDecimal approveHour;

    /** 工时日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "工时日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date workDate;

    /** 描述 */
    @Excel(name = "描述")
    private String description;

    /** 状态 */
    private Integer approveStatus;

    /** 审核人 */
    private Integer approveBy;

    /** 审核说明 */
    private String reason;

    /** 工时类型: 1--普通工时 2--维护工时 3--空闲工时 */
    @Excel(name = "工时类型")
    private Integer type;

    /** 工时评级     1：优    2：良    3：一般    4：差 */
    @Excel(name = "工时评级     1：优    2：良    3：一般    4：差")
    private Integer level;

    /**  */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createAt;


}
